
package jogs.core; 

import jogs.net.TCPGameServer; 

/** 
 * This is the interface which every game server must implement. 
 * It describes the main server-side methods needed by every game.
 */
public interface GameServerInstance
{
  public void parseSettings(String settings) throws InvalidSettingsException;
  public void setServer(TCPGameServer _server);
    
  // The TCPGameServer calls this method when a message is received from 
  // the client. Note: can't rely on order.. consider race conditions
  public void handleMessage(int clientId, String message);
}

